package com.example.attendance_back.config;

import com.example.attendance_back.model.ResponseMessage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class CommonConfig {

    @Bean
    @Scope(value = "prototype")
    public ResponseMessage responseMessage(){

        ResponseMessage responseMessage = new ResponseMessage();
        responseMessage.setSuccess(false);
        return  responseMessage;
    }
}
